.class public Lcom/farmis/feedme/FeedMe$ConfBuilder;
.super Ljava/lang/Object;
.source "FeedMe.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/farmis/feedme/FeedMe;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x9
    name = "ConfBuilder"
.end annotation


# instance fields
.field private conf:Lcom/farmis/feedme/Conf;


# direct methods
.method public constructor <init>()V
    .locals 1

    .line 29
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 30
    new-instance v0, Lcom/farmis/feedme/Conf;

    invoke-direct {v0}, Lcom/farmis/feedme/Conf;-><init>()V

    iput-object v0, p0, Lcom/farmis/feedme/FeedMe$ConfBuilder;->conf:Lcom/farmis/feedme/Conf;

    return-void
.end method


# virtual methods
.method public build()Lcom/farmis/feedme/Conf;
    .locals 1

    .line 83
    iget-object v0, p0, Lcom/farmis/feedme/FeedMe$ConfBuilder;->conf:Lcom/farmis/feedme/Conf;

    return-object v0
.end method

.method public setAccentColor(I)Lcom/farmis/feedme/FeedMe$ConfBuilder;
    .locals 1

    .line 43
    iget-object v0, p0, Lcom/farmis/feedme/FeedMe$ConfBuilder;->conf:Lcom/farmis/feedme/Conf;

    invoke-virtual {v0, p1}, Lcom/farmis/feedme/Conf;->setAccentColor(I)V

    return-object p0
.end method

.method public setApiUrl(Ljava/lang/String;)Lcom/farmis/feedme/FeedMe$ConfBuilder;
    .locals 1

    .line 33
    iget-object v0, p0, Lcom/farmis/feedme/FeedMe$ConfBuilder;->conf:Lcom/farmis/feedme/Conf;

    invoke-virtual {v0, p1}, Lcom/farmis/feedme/Conf;->setApiUrl(Ljava/lang/String;)V

    return-object p0
.end method

.method public setEnabled(Z)Lcom/farmis/feedme/FeedMe$ConfBuilder;
    .locals 1

    .line 38
    iget-object v0, p0, Lcom/farmis/feedme/FeedMe$ConfBuilder;->conf:Lcom/farmis/feedme/Conf;

    invoke-virtual {v0, p1}, Lcom/farmis/feedme/Conf;->setEnabled(Z)V

    return-object p0
.end method

.method public setQuestion(Ljava/lang/String;)Lcom/farmis/feedme/FeedMe$ConfBuilder;
    .locals 1

    .line 73
    iget-object v0, p0, Lcom/farmis/feedme/FeedMe$ConfBuilder;->conf:Lcom/farmis/feedme/Conf;

    invoke-virtual {v0, p1}, Lcom/farmis/feedme/Conf;->setQuestion(Ljava/lang/String;)V

    return-object p0
.end method

.method public setQuestionNumber(I)Lcom/farmis/feedme/FeedMe$ConfBuilder;
    .locals 1

    .line 78
    iget-object v0, p0, Lcom/farmis/feedme/FeedMe$ConfBuilder;->conf:Lcom/farmis/feedme/Conf;

    invoke-virtual {v0, p1}, Lcom/farmis/feedme/Conf;->setQuestionNumber(I)V

    return-object p0
.end method

.method public setQuestionTitle(Ljava/lang/String;)Lcom/farmis/feedme/FeedMe$ConfBuilder;
    .locals 1

    .line 68
    iget-object v0, p0, Lcom/farmis/feedme/FeedMe$ConfBuilder;->conf:Lcom/farmis/feedme/Conf;

    invoke-virtual {v0, p1}, Lcom/farmis/feedme/Conf;->setQuestionTitle(Ljava/lang/String;)V

    return-object p0
.end method

.method public setTriggerOpenCount(I)Lcom/farmis/feedme/FeedMe$ConfBuilder;
    .locals 1

    .line 53
    iget-object v0, p0, Lcom/farmis/feedme/FeedMe$ConfBuilder;->conf:Lcom/farmis/feedme/Conf;

    invoke-virtual {v0, p1}, Lcom/farmis/feedme/Conf;->setMinOpenCount(I)V

    return-object p0
.end method

.method public setTriggerTimeInHours(F)Lcom/farmis/feedme/FeedMe$ConfBuilder;
    .locals 3

    .line 58
    iget-object v0, p0, Lcom/farmis/feedme/FeedMe$ConfBuilder;->conf:Lcom/farmis/feedme/Conf;

    const/high16 v1, 0x42700000    # 60.0f

    mul-float p1, p1, v1

    mul-float p1, p1, v1

    const/high16 v1, 0x447a0000    # 1000.0f

    mul-float p1, p1, v1

    float-to-long v1, p1

    invoke-virtual {v0, v1, v2}, Lcom/farmis/feedme/Conf;->setMinTimeInMillsPassed(J)V

    return-object p0
.end method
